def print_info(name,title="", gender=True):
    """

    :param name:
    :param title:
    :param gender: 缺省参数必须放到最后
    :return:
    """
    gender_text = "男生"
    if not gender:
        gender_text = "女生"
    print("【%s】%s 是 %s" % (title,name,gender_text))

print_info("小明")
#多个缺省参数时，需要指定参数名称
print_info("小美",gender=False)